package com.zzx.model;

import java.io.Serializable;
import java.sql.Timestamp;

public class Role implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5835382949232405645L;

	private String id;
	
	private String roleName;

	private String roleDtl;

	private Boolean isDelete;

	private String createId;

	private Timestamp createTime;

	private String updateId;

	private Timestamp updateTime;

	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDtl() {
		return roleDtl;
	}

	public void setRoleDtl(String roleDtl) {
		this.roleDtl = roleDtl;
	}

	public Boolean getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Role other = (Role) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return "Role [" + "id=" + id + ", roleName=" + roleName + ", roleDtl=" + roleDtl + ", isDelete=" + isDelete
				+ ", createId=" + createId + ", createTime=" + createTime + ", updateId=" + updateId + ", updateTime="
				+ updateTime + "]";
	}
}